package com.hksj.ecm.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hksj.ecm.dto.EnergyDeviceDTO;
import com.hksj.ecm.dto.EnergyHistoryDeviceDTO;
import com.hksj.ecm.vo.EnergyDeviceVO;
import com.hksj.ecm.vo.EnergyHistoryDeviceVO;
import com.hksj.tdengine.taos.annatation.DS_TAOS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EnergyDeviceMapper {

    List<EnergyDeviceVO> queryEnergyDeviceByPage(@Param("dto") EnergyDeviceDTO dto,@Param("page") Page<EnergyDeviceVO> page);

    @DS_TAOS
    List<EnergyHistoryDeviceVO> queryEnergyHistoryDevice(@Param("tableName") String tableName, @Param("dto") EnergyHistoryDeviceDTO dto);

}
